{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('edit') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ dry_path("tablekeyvalue_new") }}" data-route="tablekeyvalue_new">{{ dry_translation('new') }}</a>
        <a class="btn btn-outline btn-info" href="{{ dry_path("tablekeyvalue_index") }}" data-route="tablekeyvalue_index">{{ dry_translation('list') }}</a>
    </div>
{% endblock %}
{% block body %}
    <form method="post" class="form-horizontal" id="form">
        <div class="form-group">
            <label class="col-sm-2 control-label">别名</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_alias" id="dry_alias" value="{{ rs.dry_alias }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">表</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_table" id="dry_table" value="{{ rs.dry_table }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">key字段</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_key" id="dry_key" value="{{ rs.dry_key }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">value字段</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_value" id="dry_value" value="{{ rs.dry_value }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">排序语句</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_order" id="dry_order" value="{{ rs.dry_order }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">自定义sql</label>
            <div class="col-sm-10"><textarea class="form-control" name="dry_sql" id="dry_sql" style="height:300px;">{{ rs.dry_sql }}</textarea></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">备注</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_note" id="dry_note" value="{{ rs.dry_note }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">排序</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_sort" id="dry_sort" value="{{ rs.dry_sort }}"></div>
        </div>
        <div class="hr-line-dashed"></div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-2">
                <button class="btn btn-primary" type="submit">确定</button>
                <button class="btn btn-white" type="reset">重置</button>
            </div>
        </div>
    </form>
{% endblock %}
